import request from '../utils/request';
export const factoryData = query => {
    return request({
        url: '/api/srm/manuinfo/doMain',
        method: 'post',
        // url: './json/factorylist.json',
        // method: 'get',
        params: query,
    });
};
export const doAdd = query => {
    return request({
        url: '/api/srm/manuinfo/doAdd',
        method: 'post',
        // url: './json/true.json',
        // method: 'get',
        data: query,
    });
};
export const doUpdate = query => {
    return request({
        url: '/api/srm/manuinfo/doUpdate',
        method:'post',
        // url: './json/true.json',
        // method: 'get',
        data: query
    });
};
export const doDelete = query => {
    return request({
        url: '/api/srm/manuinfo/doDelete',
        method:'post',
        // url: './json/true.json',
        // method: 'get',
        params: query
    });
};
//查询一个厂家的基本信息
export const selectByManuId = query => {
    return request({
        url: '/api/srm/manuinfo/selectById',
        method:'post',
        // url:'./json/factoryone.json',
        // method: 'get',
        params: query
    });
};
/*查询所有厂家 不分页*/
export const selectAll = query => {
    return request({
        url: '/api/srm/manuinfo/doAll',
        method:'post',
        // url:'./json/factorylist.json',
        // method: 'get',
        params: query
    });
};
/*导出*/
export const excelManu = query => {
    return request({
        url: '/api/srm/excel/exportManuExcel',
        method:'get',
        // url:'./json/true.json',
        // method: 'get',
        params: query
    });
};




